#include<stdio.h>
int main()
{
	int a,b,c,d,e,f,g;
	a=0;
	scanf("%d",&a);
	b=a/2;
	f=a/2;
	g=a/2;
	c=a%2;
	for (b=a/2;((!(d==0))||(!(e==0)));)
	{
		d=f/2;
		e=g/4;
		f=f%2+d+e;
		g=g%4+e+d;
		b=b+d+e;
	}
	printf("%d %d %d %d",b,f,g,c);
 } 
